package demo1;

/**
 * 数组
 */
public class demo2 {
    public static void main(String[] args) {
        int[] arr = new int[100];
        arr[0] = 100;
        System.out.println(arr[0]);
        int[] arr1 = {1,2,3,4,5,6,7,8,9};
        int a= 0;
        for (int i = 0; i < arr1.length; i++) {
            if (a<arr1[i]) {
                a = arr1[i];
            }

        };
        System.out.println("数组的最法值=" + a);
    }
}
